import React from 'react';
import { GlobalStyle } from '@/static/style'
import RouterView from '@/router/index'
import config from '@/router/config'
import { BrowserRouter } from 'react-router-dom'
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'

const App = () => {
  return <div>
    {/* 最外层盒子的第一个子元素 */}
    <GlobalStyle></GlobalStyle>
    <BrowserRouter>
      <RouterView routes={config}></RouterView>
    </BrowserRouter>
  </div>
}
export default App;
